//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04B
TN_Widget.CreateTable([['Gilby Clarke','The Parish At House Of Blues - Anaheim','Anaheim, CA','Friday','5/10/2024','7:00 PM','6248180','Gilby-Clarke-5-10-2024'],['The Bygones','The Parish At House Of Blues - Anaheim','Anaheim, CA','Thursday','5/16/2024','7:00 PM','6364553','The-Bygones-5-16-2024'],['We Three - Band','The Parish At House Of Blues - Anaheim','Anaheim, CA','Saturday','5/18/2024','7:00 PM','6297157','We-Three---Band-5-18-2024'],['Jason Martin','The Parish At House Of Blues - Anaheim','Anaheim, CA','Sunday','5/26/2024','7:30 PM','6325014','Jason-Martin-5-26-2024'],['Vision Video','The Parish At House Of Blues - Anaheim','Anaheim, CA','Friday','6/7/2024','7:00 PM','6234299','Vision-Video-6-7-2024'],['Mystery Skulls','The Parish At House Of Blues - Anaheim','Anaheim, CA','Thursday','6/13/2024','7:00 PM','6319021','Mystery-Skulls-6-13-2024'],['Levels House Party','The Parish At House Of Blues - Anaheim','Anaheim, CA','Friday','6/14/2024','8:00 PM','6349442','Levels-House-Party-6-14-2024'],['Ninja Ghandi','The Parish At House Of Blues - Anaheim','Anaheim, CA','Saturday','6/15/2024','6:00 PM','6373925','Ninja-Ghandi-6-15-2024'],['The Dollyrots','The Parish At House Of Blues - Anaheim','Anaheim, CA','Saturday','6/22/2024','7:00 PM','6332642','The-Dollyrots-6-22-2024'],['Redferrin','The Parish At House Of Blues - Anaheim','Anaheim, CA','Friday','7/12/2024','7:00 PM','6373923','Redferrin-7-12-2024'],['Mystery Skulls','The Parish At House Of Blues - New Orleans','New Orleans, LA','Thursday','7/18/2024','7:00 PM','6319059','Mystery-Skulls-7-18-2024'],['Against The Sun','The Parish At House Of Blues - Anaheim','Anaheim, CA','Saturday','7/20/2024','6:00 PM','6410637','Against-The-Sun-7-20-2024'],['Driveways','The Parish At House Of Blues - Anaheim','Anaheim, CA','Friday','8/9/2024','7:00 PM','6396817','Driveways-8-9-2024'],['Iglu & Hartly','The Parish At House Of Blues - Anaheim','Anaheim, CA','Saturday','8/17/2024','7:00 PM','6399114','Iglu---Hartly-8-17-2024'],['Cults','The Parish At House Of Blues - New Orleans','New Orleans, LA','Thursday','8/22/2024','8:00 PM','6403170','Cults-8-22-2024'],['Jack Botts','The Parish At House Of Blues - Anaheim','Anaheim, CA','Friday','8/30/2024','7:00 PM','6410642','Jack-Botts-8-30-2024'],['Jordy Searcy','The Parish At House Of Blues - Anaheim','Anaheim, CA','Tuesday','9/10/2024','8:00 PM','6410641','Jordy-Searcy-9-10-2024'],['Mikel Erentxun','The Parish At House Of Blues - Anaheim','Anaheim, CA','Friday','4/25/2070','TBD','4374012','Mikel-Erentxun-4-25-2070']],'The Parish at House of Blues','http://www.ticketnetwork.com/ticket/The-Parish-at-House-of-Blues-events.aspx');